package com.lantosec.hmrp.modules.archives.mapper;

import com.lantosec.hmrp.core.kit.PageVO;
import com.lantosec.hmrp.modules.archives.entity.UserInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lantosec.hmrp.modules.system.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 * 用户信息表 Mapper 接口
 * </p>
 *
 * @author AutoCode
 * @since 2020-06-09
 */
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    /**
     * 新增用户
     * @param sysUser
     */
    void saveSysUser(@Param("sysUser") SysUser sysUser);

    /**
     * 查询用户奖惩信息
     * @param userId
     * @return
     */
    PageVO<Map<String, Object>> getUserRewardsPunish(PageVO<Map<String, Object>> page, @Param("userId") String userId);

    /**
     * 查询用户考评记录
     * @param page
     * @param userId
     * @return
     */
    PageVO<Map<String, Object>> getUserAppraisalRecord(PageVO<Map<String, Object>> page, @Param("userId") String userId);
}
